import { Component, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { ForgetPageProvider } from './forget.page.provider';

@Component({
    selector: 'forget-page',
    templateUrl: './forget.page.html',
    styleUrls: ['./forget.page.css'],
    providers: [ForgetPageProvider]
})

export class ForgetPage {

    user: any = {
        username: '',
        password: '',
        remember: ''
    };
    constructor(private service: ForgetPageProvider) { }

    ngOnDestroy() {
        if (this.ajaxSub) {
            this.ajaxSub.unsubscribe();
        }
    }

    ajaxSub: Subscription;
    getHttp() { }
}